package com.ruoyi.shop.member.mapper;

import java.util.List;
import com.ruoyi.shop.member.domain.ShopMemberFavor;

/**
 * 会员喜好Mapper接口
 * 
 * @author xuxiang
 * @date 2023-06-11
 */
public interface ShopMemberFavorMapper {
	/**
	 * 查询会员喜好
	 * 
	 * @param favorId 会员喜好主键
	 * @return 会员喜好
	 */
	public ShopMemberFavor selectFavorById(String favorId);

	/**
	 * 查询首条记录
	 * 
	 * @param favor
	 * @return
	 */
	public ShopMemberFavor selectFirst(ShopMemberFavor favor);

	/**
	 * 查询会员喜好列表
	 * 
	 * @param shopMemberFavor 会员喜好
	 * @return 会员喜好集合
	 */
	public List<ShopMemberFavor> selectFavorList(ShopMemberFavor favor);

	/**
	 * 新增会员喜好
	 * 
	 * @param shopMemberFavor 会员喜好
	 * @return 结果
	 */
	public int insertFavor(ShopMemberFavor favor);

	/**
	 * 修改会员喜好
	 * 
	 * @param shopMemberFavor 会员喜好
	 * @return 结果
	 */
	public int updateFavor(ShopMemberFavor favor);

	/**
	 * 添加删除会员喜好
	 * 
	 * @param favor
	 * @return
	 */
	public int deleteFavor(ShopMemberFavor favor);
}
